<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta name="format-detection" content="telephone=no, address=no, email=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="misapplication-tap-highlight" content="no" />
		<meta name="HandheldFriendly" content="true" />

		<link rel="stylesheet" href="../../css/mui.min.css" type="text/css" charset="utf-8" />
		<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
 
	</head>

	<body>
		<header class="mui-bar mui-bar-nav mui-header">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">个人资料</h1>
		</header>
		<div class="mui-content">
			<div class="ease transition" id="show-group-form">
				<div style="background:#fff;padding:0.4rem 0.48rem;" id="pinfo">
					
				</div>

				<div class="mui-button-row" style="margin-top:0.5rem">
					<button type="button" id="edit" class="mui-btn mui-btn-primary mui-btn-full" id="register" style="height:44px;background:#f1c40f;color:#fff;border-color:#f1c40f">修改</button>
				</div>
			</div>

			
		</div>

	</body>
	<script src="../../js/resize.js"></script>
	<script src="../../js/mui.min.js"></script>
	<script src="../../js/app.js"></script>
	<script src="../../js/ajaxFun.js"></script>
	<!--<script type="text/javascript" src="../../js/update.js"></script>-->
	<script>
		(function($, doc) {
			$.plusReady(function() {
				plus.nativeUI.closeWaiting();
				var userInfo = JSON.parse(localStorage.getItem('$users') || '[]')
				var editButton = document.getElementById("edit");
		 
				/*获取个人资料*/
				var url = baseUrl + 'traderInfoController/getInfo.do';
				var data = {};
				ajaxFun.postFun(url, data, '', function(data) {
					data = data.data.dataList[0];
					var html='<div> <p>账号：'+data.userName+'</p> </div><div> <p>电话：'+data.mobile+'</p> </div> <div> <p>姓名：'+data.name+'</p> </div> <div> <p>公司：'+data.companyName+'</p> </div> <div> <p>地址：'+data.address+'</p> </div> ';
					document.getElementById("pinfo").innerHTML=html;
				});

				editButton.addEventListener('tap', function() {
					setTimeout(function() {
						openWindow('editPersonInfo.html','editPersonInfo')
					}, 0)
				})
 

				mui.back = function() {
					var cur = plus.webview.currentWebview();
					if(cur) {
						cur.close();
					}
				}
			})
		}(mui, document))
	</script>

</html>